package com.example.dayday.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Helen
 * @since 2022-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Course对象", description="")
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long courseId;

    @ApiModelProperty(value = "主讲老师")
    private Long mainTeacherId;

    private String courseName;

    @ApiModelProperty(value = "上课时间")
    private LocalDateTime classTime;

    @ApiModelProperty(value = "1 已删除   0未删除")
    @TableLogic(value = "0",delval = "1")
    private String isDelete;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "选修本课程的人数")
    @TableField(fill = FieldFill.INSERT)
    private Long number;

    @ApiModelProperty(value = "本课程的最大选修人数")
    private Long maxNumber;

    @ApiModelProperty(value = "学分")
    private Integer credits;

    @ApiModelProperty(value = "课程状态")
    private String status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;


}
